﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace store.cyt369.com.dal
{
    public class PropertyEquipmentService:store.cyt369.com.dal.DbContexts.PropertyEquipmentService<PropertyEquipmentService>
    {
        /// <summary>
        /// 获取所有的物业配套信息
        /// </summary>
        /// <returns></returns>
        public IQueryable<store.cyt369.com.models.PropertyEquipment> GetPropertyEquipments()
        {
            using(var ctx = this.PropertyEquipmentCtx)
            {
                var propertyEquipments = ctx.PropertyEquipment.ToList().AsQueryable();
                return propertyEquipments;
            }
        }
    }
}
